package elect;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class ChaFan {
	public static String[] str = new String[100];
	int n = 0;
	public ChaFan(){
		for(int i = 0; i<100;i++) {
			str[i]="";
		}
		
		
		File fp=new File("src/people.txt");
		InputStream i=null;
		try {
			i=new FileInputStream(fp);
			int temp;
			while((temp=i.read())!=-1) {
				if((char) temp=='/') {
					n++;
				}else {
					str[n] = str[n]+(char)temp;
				}
			}
			
		}catch(Exception e) {	
			e.printStackTrace();
		}finally {
			try {
				i.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
